package com.lvy.hczn.front.system.domain.business;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lvy.hczn.front.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 生产加工任务绑定对象 production_processing
 *
 * @author ruoyi
 * @date 2024-12-23
 */
@Data
@TableName("production_processing")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "生产加工任务绑定")
public class ProductionProcessing extends BaseModel<ProductionProcessing> {

    @ApiModelProperty(value = "仓库号")
    private String warehouseCode;

    /**
     * 分拣详情ID
     */
    @ApiModelProperty(value = "分拣详情ID")
    private String sortTaskDetailId;

    @ApiModelProperty(value = "入库单")
    private String serviceCode;

    @ApiModelProperty(value = "业务类型：0:调拨加工，1:供应商加工")
    private Integer serviceType;

    @ApiModelProperty(value = "供应商编码")
    private String supplierCode;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "生产加工方式")
    private String name;

    @ApiModelProperty(value = "生产加工时间")
    private LocalDateTime processingTime;

    /**
     * 缓存位或者仓库号值100以下仓库号
     */
    @ApiModelProperty(value = "缓存位或者仓库号值100以下仓库号")
    private String clientId;

    /**
     * 货箱编号
     */
    @ApiModelProperty(value = "生产加工的原料箱货箱编号")
    private String boxCode;

    @ApiModelProperty("原材料id")
    private String spuId;

    @ApiModelProperty(value = "sku编码")
    private String skuCode;

    @ApiModelProperty(value = "规格编码")
    private String specCode;

    @ApiModelProperty(value = "每份重量")
    private BigDecimal weightOfPerBox;

    @ApiModelProperty(value = "生产加工数量")
    private int quantity;

    @ApiModelProperty(value = "总重量")
    private BigDecimal totalWeight;

    @ApiModelProperty(value = "材料生产加工方式ID")
    private String materialProcessId;

    @ApiModelProperty(value = "原料等级")
    private String spuGradeId;

    @ApiModelProperty(value = "是否已入库：0：否；1：是")
    private Boolean done;

    @TableField(exist = false)
    private String spuName;
}
